Skip to main content

All Questions

Tagged with
0votes
2answers
70views

Linux permissions for a user not logged in sudoers

There is a server to which I have access (login and password). Logging in as this user on this server it is found that my user is not logged into sudoers. No additional information is available, I ...
KukuruzoFirst's user avatar
0votes
0answers
65views

SGID in File Permissions

the following are two scenarios to let you know how i understand the problem and the SGID: Scenario 1: user A is part of the group G. group G has full privileges to 2 files-its the group owner of ...
winstar345's user avatar
0votes
1answer
326views

How can Firefox access /dev/dri/renderD128 when it should be only root accessible

/dev/dri/renderD128 should only be accessible to root or users in the render group as per: project_kohli% ls -lha /dev/dri/renderD128 crw-rw----+ 1 root render 226, 128 May 26 09:...
Kirtivr's user avatar
0votes
1answer
111views

Can you tell me why rsync is saying my files are different

I'm using rsync to sync files from my NAS to a Remote Server. The files on the Remote Server appear to have the same user, group and permissions as the source. However rsync wants to copy the files ...
ghines's user avatar
1vote
0answers
64views

How was the formula for calculating umask derived?

When using umask, I know that to get the resulting permission, the mask is first NOTed and then it is ANDed with the default permission (777 or 666). Now my question is, how was this formula derived? ...
JLC's user avatar
  • 327
1vote
1answer
821views

Permission denied when opening a file in gdb

I'm implementing some CTF challenges. The flags are in some text files, that get read from the programs. To protect the flags I have changed the owner of the files, but have set the setuid to the ...
r3k0j's user avatar
1vote
0answers
49views

Difference between non-executable directory with and without write

Is there a difference between a directory that is not writable (and not executable) and one that is writable (but still not executable)? It seems to me that they are equivalent, because creating/...
CarmenCarmen's user avatar
22votes
2answers
3kviews

Regular user is able to modify a file owned by root

If the file is a plain text file created by root with: echo 'foo' > ./file.txt Your ls -l is: -rw-r--r-- root root ./file.txt But as a regular user, I can change this with vim saving with :w! or ...
rhuanpk's user avatar
0votes
0answers
137views

Remove write permission but keep delete permission

This is an odd one, a file in my server is written to once every boot by one of the services in it. I found out that another process (that I have no control of) keeps changing the contents, so I made ...
user2384330's user avatar
4votes
1answer
788views

ln will not create symlinks to nonexistent targets / target without permission

First of all please note that I'm on a shared server and I don't have root access, so anything involving su or sudo would not be possible. AFAIK ln and Linux should not even bother checking whether ...
Dan's user avatar
  • 141
0votes
1answer
470views

file permission for ls and lsattr

The file permission for ls and lsattr are same: debian@debian:~$ ls -al /usr/bin/ls -rwxr-xr-x 1 root root 147176 Sep 24 2020 /usr/bin/ls debian@debian:~$ ls -al /usr/bin/lsattr -rwxr-xr-x 1 root ...
showkey's user avatar
0votes
0answers
241views

Creating file or folder showing drwxr-x--- 2 root bin

I am not sure why i get this drwxr-x--- 2 root bin every time I create a new file or folder on an NFS share. Earlier I used to get drwxrwxrwx 2 root root. id root uid=0(root) gid=0(root) groups=0(root)...
Rixxo's user avatar
1vote
0answers
97views

Best practices for file and directory permissions in a multi-user environment

This is my situation in an experimental environment. A php script is creating files in a target directory when it's executed from Apache via web request. It runs as www-data user, the created files ...
puck's user avatar
  • 125
0votes
1answer
736views

Permission denied for user in group (group has directory write permissions)

I'm getting Permission Denied when attempting to create/touch files in a directory with group ownership permissions. touch /data/www/acoder.txt [acoder@box]$ touch /data/www/acoder.txt touch: cannot ...
a coder's user avatar
  • 3,343
-1votes
2answers
780views

I would like to set the permissions of a file to be editable, viewable, and deletable by everyone, what permission value should he set?

There is a general report template that someone has reserved only for the CEO. Since the file has to be editable, viewable, and deletable by everyone, what permission value should he set? My first ...
Elias's user avatar

153050per page
close